$(document).ready(function () {
    $('.t23 a:contains("编辑")').click(function () {
        let $this = $(this);
        let address_id = $this.closest('.top2').data('address_id');

        layer.open({
            type: 2,
            title: '编辑地址',
            shadeClose: true,
            shade: 0.5,
            area: ['690px', '550px'],
            content: '/address_bianji.html?action=edit&address_id=' + address_id //iframe的url
        });
    });

    $('ul li a:contains("新增")').click(function () {
        layer.open({
            type: 2,
            title: '编辑地址',
            shadeClose: true,
            shade: 0.5,
            area: ['690px', '550px'],
            content: '/address_bianji.html?action=add'
        });

        return false;
    });
});